<?php
/**
 * Created by PhpStorm.
 * User: rocky
 * Date: 2019-07-14
 * Time: 01:24
 */

namespace app\shop\resource;

use app\common\model\ArticleCollect;
use app\common\resource\BaseResource;
use app\common\tools\Files;

class RefundListResoure extends BaseResource
{
    public function toArray($data)
    {
        return [
            'id' => $data['order']['id'],
            'title' => $data['order']['title'],
            'logo' => Files::getImgUrl($data['order']['store']['logo']),
            'name' => $data['order']['store']['name'],
            'status' => $data['status'],
            'create_at'=>$data['create_at'],
        ];
    }

}